package com.seventh.associationsystem.service;

import com.seventh.associationsystem.bean.Role;
import com.seventh.associationsystem.repository.RoleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleService {

    @Autowired
    private RoleRepository roleRepository;

    public Role getRoleById(long id) {
    	Role role = roleRepository.getById(id);
        return role;
    }
}
